
from django.conf.urls import url, include
from django.contrib import admin

from apps.house import views

urlpatterns = [
    # url(r'^admin/', admin.site.urls),
    # 房屋详情页
    url(r'^api/v1.0/houses/(?P<house_id>\d+)/$', views.HouseDetailView.as_view()),
    # 首页房屋
    url(r'^api/v1.0/houses/index/$', views.HouseIndexView.as_view()),
    # 房屋搜索
    url(r'^api/v1.0/houses/search/$', views.HouseSearchView.as_view()),
    # 发布房源
    url(r'^api/v1.0/houses/$',views.HouseView.as_view()),
    # 上传房源图片
    url(r'^api/v1.0/houses/(?P<house_id>\d+)/images/$',views.HouseImageView.as_view()),
    # 我的房源
    url(r'^api/v1.0/user/houses/$',views.GetHouseView.as_view()),


]
